< previous page page_541 next page >

Page 541
#endif marks the end of a conditional-compilation block.
#if conditionally compiles the script if a specified expression is true.
#ifdef conditionally compiles the script if a specified name is defined.
#ifndef conditionally compiles the script if a specified name isn't defined.
#include copies the contents of a file into the resource definition file.
#undef removes the definition of the specified name.
Single-Line Statements
Single-line statements define the resources that require only one line of information for the compiler to understand how to create the resource:
BITMAP defines a bitmap by naming it and specifying the name of the file that contains it. To use a particular bitmap, the application requests it by name.
CURSOR defines a cursor by naming it and specifying the name of the file that contains it. To use a particular cursor, the application requests it by name.
FONT specifies the name of a file that contains a font.
ICON defines an icon by naming it and specifying the name of the file that contains it. To use a particular icon, the application requests it by name.
LANGUAGE sets the language for all resources up to the next LANGUAGE statement or to the end of the file. When the LANGUAGE statement appears before BEGIN in an ACCELERATORS, DIALOG, MENU, RCDATA, or STRINGTABLE resource definition, the specified language applies only to that resource.
MESSAGETABLE defines a message table by naming it and specifying the name of the file that contains it. The file is a binary resource file generated by the Message Compiler.
Multiline Statements
Multiline statements are definitions that require more than one line to fully define the resource:
ACCELERATORS defines menu accelerator keys.
DIALOG defines a template that an application can use to create dialog boxes.
MENU defines the appearance and function of a menu.
RCDATA defines data resources, which let you include binary data in the executable file.
STRINGTABLE defines string resources, which are Unicode strings that can be loaded from the executable file.

 
< previous page page_541 next page >

If you like this book, buy it!